/**
 * 聊天消息内容模块
 * 存储十天内的消息，如果
 */
const mongoose = require('mongoose')

const Schema = mongoose.Schema

const chatmsgSchema = new Schema({
  email: {
    type: String,
    required: true
  },
  chatMsg: {
    type: Array,
    default: ([
      {
        friendEmail: '',
        contents: [
          {
            create_time: '',
            content
          }
        ]
      }
    ])
  }
})

module.exports = mongoose.model('Chatmsg', chatmsgSchema)